package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServicePriceMapper;
import com.ruoyi.service.domain.ServicePrice;
import com.ruoyi.service.service.IServicePriceService;

/**
 * 耗材价格调整Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServicePriceServiceImpl implements IServicePriceService 
{
    @Autowired
    private ServicePriceMapper servicePriceMapper;

    /**
     * 查询耗材价格调整
     * 
     * @param priceId 耗材价格调整主键
     * @return 耗材价格调整
     */
    @Override
    public ServicePrice selectServicePriceByPriceId(Long priceId)
    {
        return servicePriceMapper.selectServicePriceByPriceId(priceId);
    }

    /**
     * 查询耗材价格调整列表
     * 
     * @param servicePrice 耗材价格调整
     * @return 耗材价格调整
     */
    @Override
    public List<ServicePrice> selectServicePriceList(ServicePrice servicePrice)
    {
        return servicePriceMapper.selectServicePriceList(servicePrice);
    }

    /**
     * 新增耗材价格调整
     * 
     * @param servicePrice 耗材价格调整
     * @return 结果
     */
    @Override
    public int insertServicePrice(ServicePrice servicePrice)
    {
        return servicePriceMapper.insertServicePrice(servicePrice);
    }

    /**
     * 修改耗材价格调整
     * 
     * @param servicePrice 耗材价格调整
     * @return 结果
     */
    @Override
    public int updateServicePrice(ServicePrice servicePrice)
    {
        return servicePriceMapper.updateServicePrice(servicePrice);
    }

    /**
     * 批量删除耗材价格调整
     * 
     * @param priceIds 需要删除的耗材价格调整主键
     * @return 结果
     */
    @Override
    public int deleteServicePriceByPriceIds(Long[] priceIds)
    {
        return servicePriceMapper.deleteServicePriceByPriceIds(priceIds);
    }

    /**
     * 删除耗材价格调整信息
     * 
     * @param priceId 耗材价格调整主键
     * @return 结果
     */
    @Override
    public int deleteServicePriceByPriceId(Long priceId)
    {
        return servicePriceMapper.deleteServicePriceByPriceId(priceId);
    }
}
